package com.waimai.db.dao;

import java.util.List;

import com.waimai.db.entity.Comment;
import com.waimai.db.entity.Food;
import com.waimai.db.entity.Order;
import com.waimai.db.entity.ReceiveAddress;
import com.waimai.db.entity.Restaurant;

public interface RestaurantDao{
	
	public List<Restaurant> findBykeyWords(String keyWords);
	
	public List<Food> getFoods(Integer restaurantId);

	public Restaurant findById(Integer restaurantId);

	public List<Restaurant> getRestaurants();

	public void save(Restaurant restaurant);
	
	public void update(Restaurant restaurant);
	
	public Order addOrder(Order order);

	public ReceiveAddress addAddress(ReceiveAddress receiveaddress);

	public List<Comment> getComments(Integer restaurantId, float minStarLevel, float maxStarLevel);

	public List<Restaurant> getRestaurantsByAdminId(int adminId);

	public Restaurant findByRestuarentName(String restaurantName);

	public List<Comment> getCommentByAdminId(int adminId);

	public Restaurant getRestaurantsByName(String restaurantName);
}
